import request from '@/utils/request'

// 查询检修作业计划列表
export function listWorkPlan(query) {
  return request({
    url: '/workPlan/workPlan/list',
    method: 'get',
    params: query
  })
}

// 查询检修作业计划详细
export function getWorkPlan(id) {
  return request({
    url: '/workPlan/workPlan/' + id,
    method: 'get'
  })
}

// 新增检修作业计划
export function addWorkPlan(data) {
  return request({
    url: '/workPlan/workPlan',
    method: 'post',
    data: data
  })
}

// 修改检修作业计划
export function updateWorkPlan(data) {
  return request({
    url: '/workPlan/workPlan',
    method: 'put',
    data: data
  })
}

// 删除检修作业计划
export function delWorkPlan(id) {
  return request({
    url: '/workPlan/workPlan/' + id,
    method: 'delete'
  })
}



//编组号下拉框

export function choiceList() {
  return request({
    url: '/car/car/choice',
    method: 'get'
  })
}

// 作业班组


export function workTeamchoice() {
  return request({
    url: '/workTeam/workTeam/choice',
    method: 'get'
  })
}


// 股道台位
export function trackTeam() {
  return request({
    url: '/track/track/choice',
    method: 'get'
  })
}



//打印

export function printData(query) {
  return request({
    url: '/workRecord/workRecord/print',
    method: 'get',
    params:query
  })
}




